package com.qihang.core.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qihang.common.PagerModel;
import com.qihang.core.dao.ArticleDao;
import com.qihang.core.domain.ArticleEntity;
import com.qihang.core.service.ArticleService;

@Service("articleService")
public class ArticleServiceImpl implements ArticleService {

	@Resource(name = "articleDao")
	private ArticleDao articleDao;

	@Override
	public boolean addArticle(ArticleEntity paramArticle) {
		return articleDao.addArticle(paramArticle);
	}

	@Override
	public void updateArticle(ArticleEntity paramArticle) {
		articleDao.updateArticle(paramArticle);
	}

	@Override
	public void delArticle(ArticleEntity paramArticle) {
		articleDao.delArticle(paramArticle);
	}

	@Override
	public ArticleEntity getArticle(ArticleEntity paramArticle) {
		return articleDao.getArticle(paramArticle);
	}

	@Override
	public PagerModel getArticleList(ArticleEntity paramArticle) {
		return articleDao.getArticleList(paramArticle);
	}

}
